package com.sa.user.service;

import cn.dev33.satoken.util.SaResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sa.user.api.dto.UserDTO;
import com.sa.user.dataobject.User;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 *
 */
public interface UserService extends IService<User> {

    SaResult validateUser(UserDTO userDTO);

    ResponseEntity<?> createUser(UserDTO userDTO);

    ResponseEntity<?> getUserById(Long id);

    ResponseEntity<List<UserDTO>> getAllUsers();

    ResponseEntity<?> updateUser(Long id, UserDTO userDTO);

    ResponseEntity<?> deleteUser(Long id);
}
